{%include file="header.tpl"%}
<style>
table { border:1px solid #666; }
table td { border-right:1px solid #666; border-bottom:1px solid #666; padding:5px; }
div, td, p { font-size:9pt; }
.info { display:none; margin-top:20px; }
</style>
<body>
<div>
<form action="{%$form_action_urll%}" method="post" enctype="multipart/form-data">
    <label>t帖子内容：<textarea name="card_content" id="card_content"></textarea></label>
    <p>
    {%foreach from=$face_data key=key item=item%}
    <label>
    <input type="radio" name="face" value="{%$key%}" onclick="faceaction(this)"/>
    {%$item%}</label>
    {%/foreach%}
  </p>
  <p>
    <label>图片：<input type="file" name="picture[]" /></label>
	<label>链接：<input type="text" name="link" width="100"/> </label>
  </p>
  <table cellspacing="0" cellpadding="0">
<tr>
<td>测试模块动作:<select name="action_type"><option>--select--</option>
{%foreach from=$action_type key=key item=item%}
{% if $request.action_type eq $key %}
	<option selected="selected" value="{%$key%}" >{%$item%}</option>
{% else %}
	<option value="{%$key%}" >{%$item%}</option>
{% /if %}
{%/foreach%}

?>
</select></td>
<td>&nbsp;</td>
</tr><tr>
<td>页面所属用户ID(page_user_id):<input type="text" name="page_user_id" value="{% $request.page_user_id %}" /></td>
<td>发贴用户ID(user_id):<input type="text" name="user_id" value="{% $request.user_id %}" /></td>
</tr><tr>
<td>主贴ID(main_id):<input type="text" name="main_id" value="{% $request.main_id %}" /></td>
<td>&nbsp;</td>
</tr>
</table>
<input type="submit" value="发帖" name='submit'/>
</form>

<div>
<ul>
{%$card_html_show%}
<ul>
</div>
<script>
	function faceaction(obj){
		var objtexarea = document.getElementById('card_content');
        objtexarea.value = objtexarea.value + obj.value;
	}

</script>
</body>

{%include file="footer.tpl"%}
